package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Order;

import java.util.Date;
import java.util.List;

public interface OrderService {

    //用户下单
    void submit(Order order);

    //分页查找订单信息-客户端
    Page<Order> findPage(Integer pageNum, Integer pageSize);

    //分页查找订单信息-服务器
    Page <Order> orderPage(Integer pageNum, Integer pageSize, Date beginTime, Date endTime,String number);
}
